<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编程学习 - Flask 学习之路<</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for( 'static', filename='css/index.css' ) }}" />
    {% block css %} {% endblock %}
</head>
<body>
    <div class="container">
        <div class="navbar">
            <input type="checkbox" checked="checked">
            <ul>
                <li><a href="/">主页</a></li>
                <li><a href="/user/list">用户</a></li>
                <li><a href="/user/create">创建用户</a></li>
                <li><a href="/redirt/self">重定向</a></li>
                <li><a href="/redirt/baidu">外重定向</a></li>
                <li><a href="/redirt/baidu">外重定向</a></li>
            </ul>
        </div>
        {% if user %}
        <div class="user">
           欢迎回来!  {{user.uname}}
        </div>
        {% endif %}
    </div>

    <div class="content">
        {% block body %} {% endblock %}
    </div>

    <script src="{{ url_for( 'static', filename='js/index.js' ) }}"></script>
    {% block javascript %} {% endblock %}


</body>
</html>